package model;

import java.util.List;

import javax.persistence.*;

import play.*;
import play.db.ebean.*;

@Entity
@Table(name = "trip")
public class Trip extends Model{
 
	@Id
	public String trip_id;
	public String service_id;
	public String trip_headsign;
	public String direction_id;
	public String block_id;
	public String shape_id;
	

	@ManyToOne
	@JoinColumn(name = "route_id", referencedColumnName = "route_id")
	public Route route;
	
	@OneToMany(mappedBy = "trip", cascade = CascadeType.ALL)
	public List<StopTimes> StopTimes;
	
}
